package com.qianfeng.yime.task;

import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.exception.HttpException;
import com.lidroid.xutils.http.ResponseInfo;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.lidroid.xutils.http.client.HttpRequest;

/**
 * Created by IDEA
 * User : SL
 * on  2015/3/10.
 * 18:18
 */
public class UserLoginTask {

    public void execute() {
        HttpUtils httpUtils = new HttpUtils();
        httpUtils.send(HttpRequest.HttpMethod.GET, "", new RequestCallBack<String>() {
            @Override
            public void onSuccess(ResponseInfo<String> responseInfo) {
                String result = responseInfo.result;
            }

            @Override
            public void onFailure(HttpException e, String s) {

            }
        });
    }
}
